Skip to content

build(deps): Bump sentry-sdk to 3.0.0 - #760

Draft
cleptric wants to merge 2 commits into
mainfrom
build/sentry-sdk-3
Draft

cleptric wants to merge 2 commits into
mainfrom
build/sentry-sdk-3

Conversation

@cleptric

Copy link
Copy Markdown
Member

No description provided.

Migrate off the options removed in 3.0 and keep creating issues from error logs, scrubbing local variables, and the existing message grouping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
HackerNews com.emergetools.hackernews 3.8 (1) Release

Android

🔗 App Name App ID Version Configuration
Hacker News com.emergetools.hackernews 1.0.2 (13) Release

⚙️ launchpad-test-android Build Distribution Settings

@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Size Analysis

1 component analyzed, 1 component processing

iOS Builds

Name Configuration Version Download Size Install Size
HackerNews (iOS)
com.emergetools.hackernews
Release 3.8 (1) 6.5 MB (0 B) 9.7 MB (0 B)

Android Builds

Name Configuration Version Download Size Uncompressed Size
Hacker News (Android)
com.emergetools.hackernews
Release 1.0.2 (13) Processing... (-) Processing... (-)

Configure launchpad-test-ios status check rules

Earlier releases import an API removed in sentry-sdk 3.0 and crash on startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

PY-3105

Comment on lines 46 to 58
sentry_sdk.init(
dsn=config.dsn,
integrations=integrations,
data_collection={},
# SDK 3.x no longer scrubs sensitive local variables by default.
data_collection={"stack_frame_variables": {"mode": "denylist"}},
# SDK 3.x attaches stack traces to messages by default, which would regroup issues.
attach_stacktrace=False,
# Release is the git sha
release=config.release,
# Convention is to set the Sentry environment to the region (us, de, etc).
enable_logs=True,
environment=config.region,
traces_sample_rate=1.0, # Low volume service, capture all traces for now
trace_lifecycle="stream",
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing enable_logs=True drops Sentry log shipping used by workers

initialize_sentry_sdk no longer passes enable_logs=True, so worker/process log records may stop arriving as Sentry log envelopes. Restore enable_logs (or the SDK 3.x equivalent) if log shipping is still required.

Evidence
  • Diff removes enable_logs=True from sentry_sdk.init(...) with no replacement option or comment that it is now default.
  • tests/integration/size/test_apple_app_sizes.py::test_worker_logs_are_sent_to_sentry_under_parent_trace requires worker log envelopes (type == "log") for size.apple.binary_analysis_completed.
  • Binary workers call initialize_sentry_sdk(context.sentry_config) in _binary_worker_init, so production log shipping depends on this init path.
  • event_level=ERROR on LoggingIntegration emits Issue events, not log envelopes, and does not substitute for enable_logs.

Identified by Warden · code-review · VPW-HLJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant